package com.mybed.crm.pojo.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("tb_dict")
@EqualsAndHashCode
public class Dict {
    @TableId(type = IdType.AUTO)
    @ExcelProperty("字典id")
    private Integer dictId;
    @ExcelProperty("创建人")
    private String createBy;
    @ExcelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ExcelProperty("更新人")
    private String updateBy;
    @ExcelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ExcelProperty("字典名字")
    private String dictName;
    @ExcelProperty("字典类型")
    private String dictType;
    @ExcelProperty("状态")
    private String status;
}